fix the navigation templating