Add event to document