loadData before GUI