Control panel User Interface Fixes

Fixes #1837. Fixes #1774.

Summary of changes:
* Don't pass Ungrouped in group data when there are no other groups and it is empty.
* Whenever a row in a selectable table is clicked on, check to see if any rows are selected, and turn on action buttons accordingly.