add stopPropagation and remove document prefix