moving headings inside templates