moved log out of list.php