AbstractDialog: Fixed bug: When the dialog show again, it will cancel all event handlers