numerous ui and stats calc fixes.