CRUD functions return ajax so we have access to deferred functions.
Update crud functions to set the notes data attributes on a successful return.
Refactoring create button handler event