add span classes to events