ajax for update works too