a simple state machine service that allows view control flow.