implemented updating threshold after user is added, updated, deleted, or restored