updated main nav link logic