The add function takes an optional boolean as second parameter which determines whether the new tab will immediately be selected or not. If true is passed (default) then the new tab will be selected and thus a callback will be triggered to indicate that the selected tab has changed. So if you don't want this you can pass false as second parameter to the add function.