[2.2] - Only execute handlePreview if the "deleted" value changed

For now we were executing hide/show methods on the preview button on every save.

With this PR the methods are only executed if the deleted value of the resource changed.