generate index using iframes