remove unnecesary logic in footer function in main.js file