converted nav bar to reusable template