changed how notes controller is written