getAllDashboardEvents extracted to util.js