added the functionality to show the titles for a category