Removed some debugging printing. Added auto-dirtying of widgets.