Converted confirm to data confirm 

Converted confirm to data confirm to remove deprecation warning