working on contentWindow bug