improved handling of settings when creating new tab