State machine for UI completed