main menu function pge changed