added search by category functionality