changed event target to parent instead of window