api url callback and validator
reset API when API URL changes