multiple fixes and improvemetns, especially on the stats page