fixed navbar method issue