Making the navigation bar more dynamic