Notes controller, model