Added the confirmation for PDf and Excel