1) only set new tab's owner to the current tab for foregournd tab, so when you close it you'll go back to the current tab; 2) change .hide to .superdrag-hide