Clicking on a table of contents heading in the sidebar will move your cursor to that section of the document. After selecting a format in the list, clicking on the refresh button will number automatically your document's headings.