made the navbar into a template