Refactored activating/deactivating panes