switch class name on click