Changed the overriden method from isVisible to onConfigure.