update html after format adjust