Updated search.controller.js