protected void onCancel() {
   // close this dialog
   dismiss();
   listener.onUserAction(NO);
 }
 protected void onConfirm() {
   // close this dialog
   dismiss();
   listener.onUserAction(YES);
 }