fixed bug in nav bar in layout