delete the dialog