Removed useless things in view.js