Switching between tabs with a menu