changed button behavior