split header and footer files