added ajax func
added ajax func