removeTab() function added