Changes html hierarchy