change the delete action of treatments and managements