Update elements with new classes.