Refactor dashboard group partial.