Section change on scroll logic enhancement, formatting for header titles