put route working to edit note