swapWidgets added string option for ids