add resetForm function