updated notes controller