expand mount/unmount to before/after notifications
update the container mount/unmount handling
update the rest of the widget's mount/unmount handling