changed loading management to load all items in the beginning instead of doing it level by level