use window interface to interact with iframe