Add cancel event and change button msg on error