add AppState