changed button active state