Toggle panel visibility when appending or removing the panel so that its...

... child views can react to becameVisible and becameHidden.