fixing header and adding footer