Clicking preview replaces html with printable pages