main menu funcionality