Update viewManager.js