Updating the status of Tasks