update update action in notes controller