Improve drag and drop of tabs