Edit doc