ajax calling to buy action