Revert "refactoring widget.visible and IWidgetVisibility"

This reverts commit aa04a584a40decbb6bc8dcac64374797305b3028.