adding event listener to selectCtrl