update hidden field