debugging main window menus