added a menu to the main panel