updated code for form creation