fix a bug may cause crash

always should operate table view in main thread