c7099ce adds example of attach events to modal