Pass button evnt to dialog