refactored display on dashboard into stats_helper.rb