Fix for issue #100 that enables the preview button for resources in the datastore