fixing header and footer templates