Add header and footer subsitution