Fixed bug in dynamic html forms for index.html