overwrite html after having completed it