added exitDlg