Synchronizing Tool States with UI in Cornerstone3D: Using Events and ToolGroup API