modify index.js in controller