Improve display of section/subsection when they change