listen for page errors