don't forget to detach the widget if it exists : 
```java
Widget w = options.getWidget();
if (w != null && RootPanel.isInDetachList(w)) {
    RootPanel.detachNow(w);
}
```