added insert of page numbers into thread table