updated api call to get all task