copy of the menu to get a quit to menu finction working