rewrote stats into their own window