Added a confirm when deleting a curve