set timeout to wait for iframe to load