Added user confirmation on cancel button