rearranged content and elements of the html doc