create empty tab in settings on tab creation
small refactoring of method
casting is not necessary anymore