if in both cases is going to display the main menu take that sentence out of the if statement