modified demo to use events for transcluded form.