print dialog when finished