Expose dialog (in addition to widget) to event callbacks. BREAKING CHANGE

Please note: this is a breaking change. Is there a better way to do this?