prepare for onbeforeunload for widgets