Added a confirm dialog