Updates table of contents with new pages