attach iframes window error on each load