Organization of search_controller.rb code