Added functions for header, footer, and highlighted rows