added firebase data sync