add resetForm function to reset form button