cancel action can do more than to close the window
dialog now fires dialogContentReplaced event