cleaned up note editor flow