modularizing ws into iframes