updates form handling