revert changes to widget