# replaced unit DOM element IDs "stateX" with UUIDs # further merged, simplified, and corrected code (matching new data models)