refactoring templates to work better with ckanext-pages