changed button enabling