added a confirm deletion alert.