update on case delete and case restore