main.js for dashboard