Adding templates to tabs