populate the hidden input after deserialization