add function to toggle tabs between menus