only access contentWindow once iframe has loaded