Customize widget with API