better tab rendering