made navbar dynamic