add check to see if menu exists before selecting menu item