added saving and menus