reorganizes stats view, fixes from @mbi for empty records and such