removed unecessary functions from SearchCtrl.