put label class on change

Fix #1135