reverting preventdefault code