changed button click handlers.