added JOptionPane for cancellation deletion.