Added edit section logic with locks.