worked on viewer.html