Update data when join/leave team on team page

Fixes #495