paging and main document modifications