add events to div