made nav-bar work