adding backtracking through menus