fixed decision making for navigation buttons