moved data, types, and element out of dataTransfer