update save action of safetyModelEditor to support method of port