Adding and Removing class from the element.