Adding customized confirmation dialog