adding events and setting content id for referencing