updating styles for events