Added some startup code for switching between tabs in the sidebar