create header, footer, and table