improved form constructor, form submit still not working