changes class names and image