Added confirm dialog for adding file