Implemented JSDialog: OnResetDialogState and OnDialogClosed