implement master edit