Update widget.js

Some UI improvements.