minor refactor in dashboard