implement edit record