Should unify this logic of creating the iframe and setting the common attributes in the connect so we don't have code duplication.