modified search controller