added popup before call to confirm