removed hard-coded groups from statistics web interface

now all statistics are dynamic
removed redundant code in statistics web interface