Updating automatic table of contents