binding events on generated content