adds navbar logic to render correct navs for pages