updated search controller