Modify to display a detele dialog.