made navbar work with router