I am having a function in which it executes another dialog with its class name. In that dialog there is a cancel button. I need to do is, when the cancel button is clicked it should come out of the entire thing. How to do this??