add some comments to view.js