Added the printer dialog function