I am having 1 function and I want to show confirmation box in between function execution