creating form fields automatically