Auto save when swiping back from notes
Code cleanup of notes page