handle attr/class removal/addition