add hook for communicating out of iframe