widget feature duplicated code deleted