changed routing of the dashboard.js file