fixed all the remaining issues (header+footer)