added the search functionality for home and invite page.