add source code for header/footer