reverted back to e.target in document event handlers