adding event tracking