added the missing search and category functionalities.