bug fixes and an method of quitting menus