modified the color of the selected region