Fix layout of header/footer