move HTML generation to template for team page