moved adding captions until the initStates call