dynamically add tabs and still works