restored lost changes to SearchController