Updated all_widgets example to match API changes