update color of event type