Corrections to widget code and output