Update ViewSwitcher.js