Added delete functionality to the edit form.