add the search function to the trendingNews