Hooking up events and crossing postMessage boundry