added switch for main menu