Auto select name of the tabs depending to widget width
Refactoring