fixing undefined error. fixing log socket.io. fixing showing excluded books on excluded page.