Added a new method, moveTab:toIndex: