added search functionality based on text and category to the front page