Modified the team page event code so it's consistent with the dashboard