synced with hermes
fixed close dialog