added switch between grouped and simple result display