some changes in main.js