moved save to inside onDeviceReady + console logs