Tempalte Layout update

Adding function to see subcategories on the template layout.