Add full functional of statistics window