cleaning up the stats dialog