modified searchcontroller