Some changes to dashboard.js