Refactoring index page for a_template_cats