updating header and adding footer