adding basic form handling