fixes nav bug to recognize session and display links accordingly