Modifications to support selecting a specific group in the classification dialog. Changed how layers are drawn when the layer is visible/invisible.