fix the table slicing so that its done after the grouping, to maintain the correct combined sort order. few ui tweaks