Added state switch to main menu.