Setting note state correctly for closed notes