adding defaultPrevented check
updating version