implemented search by category