manage custom templates for pages and basic routing