support hiding the label in view mode.