search controller and model