adding viewer code