fixed an issue related firefox disabling preventDefaults function