refactoring counters view