rename selectedNote to note