Adds onbeforeunload on News edition page