layout editor,Refactoring, iframe loading issue