notes controller