use diff ajax function implementation