sets up the search results as templatted output