Added in the html replace logic in the pin save