updating page links from table of contents