finished work with logic for main nav