Fix arguments on notes#edit - Code cleanup