Redefine dialog event listener
fixes #1