Update class attribute trigger