Update event logic. Change event to be accessed by token instead of id.