reordering HTML structure