Move search to its own controller method