semi working version of new mian UI - most of stats added

Some thread issues are addressed.
Merge remote-tracking branch 'origin/master'