added a constructor ConfirmDlg(String)