Update the HTML framework, and save the current section index.