added ajax api calls