updateMember function refactored to accept tabs