BRANCH 4.1-DEV: added ability to switch layout of a ViewPanelWdg in javascript