Cleaning up the note reopening feature