handling page turning for TEI