Building the searchCtrl