Added search by category function