updated condition for 'tabs' sections in template