modify DOM structure