Adding collider check to the button switch