separate out the code listing the search results