Got rid of deprecation warning for confirm