loadData and savedata called in Main