edit spans