Removed active navigation button
Change variable scope for ES statistics