Bug 1496990 - Move the onSidebarSelect event handler before adding the sidebar tabs...