moved some dashboard logic to partials