added some fixes in MainMenu

switch case