An action of the cactus group