Updated boxes to support legacy (non-UI) elements in layout.