minor dashboard functions refactor