ajax and statistics page