cleans widget
refactoring