implemented main menu