track changes: move dialog event handling into the dialog file