Bodged in a way to keep track of which note is currently open, this fixes a bug where it wouldn't open the note in the edito
r upon page load