Fix most of the tab rendering issues