Detect when the user has changed a note and minor cleanup