added header and footer and called them