refactored nav bar into layout