new tab class that generates all html for tabs and more dynamic functions to ptb html and fixes