application controller refactor sidekick for traffic counter