added category search functionality