TODO:
    - refactor stats by templates in dashboard, maybe a templatetag