restructure iframe confinement