modify disable onbeforeunload