Add event listeners to document instead of element.