Fix custom widget sample to flow from updated earlier samples.