Fixed some deprecations

* Model.all is deprecacted, use without .all
* confirm: message is deprecated, needed to be wrapped
  in data block
Merge pull request #5809 from jvanbaarsen/deprecation_fixes

Fixed some deprecations