Adding a reset function to the searchCtrl