refactor dashboard into partials