generate new html after adjustment