update the form