use mainMenuPanels object in viewer