DialogCancelEvent changed to DialogCloseEvent and DialogCloseType.RESPOND added