notes controller and model