Inserting header and footer