segregate the template into header, sidebar, footer