State Machine and UI Effects: temptative draft