add event handle function for cancel & finish button on wizard.