made nav bar actually function