added updateUserList() function