class of an element keeps changing, shouldn't anymore