solve Iframe timing issue