Logic to save edits to current and previously saved notes
Removed unnecessarily cached elements