search functionality added in SearchController