Add .window_closed, .window_opened, dialog.ok (), and dialog.cancel ().