made a few changes in main.js