Added refresh function to main menu