changed addthis code to async