Implement ViewStateMachine in app