fix bug when buttons change colors when selected