Fixes layout with headers, titles , and footers.