fix bug when adding member to a team and rename method
Merge pull request #617 from dimagi/add-member-bug

fix bug when adding member to a team and rename method