switching delegate events to use the capture phase instead of the bubbling phase