close dialog after saving