updated task with ajax