only show the preview if there is a value