changes made as per the new structure in dashboard.js