A proposed way to manage primary key in editing mode