Fix css issues in extended template tabs