Added warning to inform users about losing changes when navigating away from page with unsaved changes.