fix header/ footer issues