change switchbutton(sprite) to switchbutton(button)