change DataManager to a thread class