fixed navbar refreshing