Turn the panel button into a toggle button