Optimization on styles for tabpanel