list.html and logout functionality