Adding a confirmation dialog.