added main controller instance
trace button click