Auto-switch menus when one is open