changing function to display categories at TV template