Adding dynamic form code