added support to communicate with iframes