Update alert if unsaved document