Adds ContextListener to doc