Updating input fields in a table