Implementing visibleOn and hiddenOn for all widgets and adding the demo for it.