add modifications to frmWindowViewer