maybe this could be run when someone actually clicks the button rather than when they open th stats page?