delete entire envelope when clicking on first or last points