Making label content work with switches