added stat code for all pages