modify trace button callback