js refactored
notifications on unsaved data added