nav logic