updating the color for events