refactor templates to use a nav menu