Implements new note and edit note