table loading moved to main thread