Updating html snippet