update html snippet