log out upon window close
update userList