XO Algorithm and Widget Hierarchy