Implemented event listeners on doc to not conflict with the docs event properties.