changed button code