created viewer script