:fixed repeated call to getgroups from ajax call