Some code to dynamically add tab
Basic functionality.