Update dashboardFactory.js