updated ajax to match new backend