moved dashboard.js to index.js