Add headings to outline elements