add events to embed