Handle labels visibility.