Delete repeated function in main menu