added cancel button to confirm dialog