editing one def turns off edit mode of the others