make navbar more modular