before refactoring setStateFor* methods in main activity