Prevent stray view by generating the headings dynamically