add categories to search templates