shifted save/load code out of main activity class and into json helper class