Fixing route rule in dashboard.js