Model and controller for notes