Use instance API to initialize widgets.