#39: Tab rendering fix, title case for each tab, code refactored.