I want to detekt if OK or some other button was hit to close a modal dialog.