add events plugin