implement resetForm