[fix] little refactor of notes controller and [add] edit view