made the menu function