Added clean up action after every update of the widget settings

It is necessary for removing unexisting widget settings.