switch button react on whole button