clean up search controller and view