Redirect edges; bug with event listeners on document