Make it wait for iframe loaded event