add a switch to the popup