correction of secont last page problem; page / structure based index is working, in page mode, the first page is not cut correctly (toplevel div is copied to content field), page-structure mode is not yet working