added a for loop in Main Menu