modify HTML structure