implemented documents load in separate thread