Making the navigation dynamically generated