add this.notes=null in the reset function of the noteManager widget