Completed functions of main menu