Adding a toggle switch to the popup.