updated name and value of hidden field