Added dispatch_async function to edit cell on the main queue.