Added dialog event catcher