Setting cancel dialog as default