Change text-updating logic to match on title rather than ID