Issue #64 fix

Introduced a `hasUnSaved` function to check if the content has unsaved changes.