updated to work with new API for SwitcherPopup
1.0.2