added a controller for the main menu