finishes search result controller