Can update and delete data with ajax