Updating class for event, register listener for record event