added the ability to make tabs deletable