Changed the onUserListChange function.