update the Events logic