re-structure html