Functionality for nav bar. Added active