renamed AppState to SharedStateBundle