added a shared template for nav elements