Updated to Mental Notes app: working code