add hook for iframes