optimize the widget set