Now whole data of each category is passed to the template