adding ajax to tasks