adapt to the new ojwidgets