Working nav bar using templates