fixed error with nav bar in layout