Edit documrnt