Move pane hide/show logic into TopLevel subclass