reset record fields when submitted
Fix ordering of input fields for new records

so that they match the table headers