reorganized the main menu