search by categories, change template