refactoring of the nav bar so routes work and is cleaner