don't show preview button when the preview is not supported
Merge pull request #483 from ngds/fix-preview-button

don't show preview button when the preview is not supported