adds rows for head, content, and footer