Don't append created iframe to document if it's going to be appended to a dialog - skip redundant http request + small CS improvements