added an example on how to add a tab dynamically