Updated so auto saves to firebase