reworked navigation templating and extensions