working on viewer window