properly fixing the nav bar problem