create header and footer