Added support for multiple teams and applied DRY for HTML data