Fixing Pane5 toggle