adding statistics to ui