added code to prompt user to confirm deleting list.