minor fixes to hide empty attributes in the preview view