realise all methods of notes controller