Improved iframe connecting