Resource Pages - added save before leave functionality

issue: If you click 'Edit' on a page , make a change, and close the tab/ reload the tab, it does not warn to save before leave.