small modifications in main.js