Handling of styles in nav bar for active page