removed index.js, added to view.js