add productId attribute, save and restore previously entered values