fix a bug, should operate table view in main thread