added onbeforeunload on Edit Page Content screen to prevent user from losing work accidentally