refactor html struc