changed view.js