Modified search Controller