added popup menus and main menu bar