Add warning if we leave the page by mistake
Right now, the warning exists only if you leave the page without saving the widget. But if you have already created one and make changes to it and click the browser's return button by mistake before saving, you loose everthing.