Fixed some bugs on dashboard and now implemented stats.