saving progress before connecting to firebase