rewrite boxwidget