update stats in main.js