added editMember function