updated search to use like and logout to reset session

moved search to different controller