added analytics

and improved performance of index page