handle updates in the form