sample: update widget to v5.1