Added ajax call for the stats. And fixed the function 'groups_agent_ok' in functions_groups.php