base widget destruction procedure