adds a search controller to return search results