reformat and reposition header elements