making async call to search endpoint and populating results