when click cancel of dialog exit process