Added general functions for the main menu