Added capapbility to save events to phone when the api can't be reached