added mafginific pop up code in themain.js file