Added function to delete a tab