ajax call from search results working