Preliminary code for seamless transfer of tabs between sidebars.