Fixed removeTab() function

Fixed bug and added repositioning of labels on removeTab.