update view.js