Corrections to printtemplate. Must open a seperate window when printing.