Refactor scatter widget method