Add function to table of contents and improve accurate of represented content order