Simplify code for nav bar by putting nav bar into seperate files