Inspired by `org-switcher.widget.js`