Refactor some of the nav styling and script