moved index to views, made statistics live