added some dialog.close