Fixes for the Show/Hide Blocks feature

I noticed that even if you click Show/Hide Blocks and uncheck one of the boxes, the group remains visible once you've clicked Save. Furthermore, if you hide the group that's currently open, the contents remain visible; I introduced a fix for this, as well.