reset from and to if term field is selected