Toggle class for icon switch