updated notes controller

changed notes controller