make navbar class work