make 'selected' an attribute of a note