extract common utils file to send resize messges from iframe to parent window