Consolidate boxes, remove unnecessary code, and make the widget fit its container as best it can.