writing the logic for the small screen tour menu navigation