tweak html snippet