update element class