notes controller and entity