typo here: `onDialogClosed`