well I have a application in which i call a dialog box whenever user clicks on menu button, and the values filled by user are exchanged with view variables, but the problem in my application is that this exchange occurs always wheter ok or cancel or any of them is clicked.....how could i restrict this to occur only when user clicks on OK??